package com.hospital.user.registration.service.Imp;


import com.hospital.user.registration.dao.Docator_Info;
import com.hospital.user.registration.entity.Doctor_Info;
import com.hospital.user.registration.service.DoctorInfoServicei;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorInfoservice implements DoctorInfoServicei {

    @Autowired
    private Docator_Info info;

    @Override
    public List<Doctor_Info> loockInfo(String type) {
        return info.findByType(type);
    }

    @Override
    public Doctor_Info FindByNames(String doctorname) {
        Doctor_Info doctor_info = info.findByName(doctorname);
        return doctor_info;
    }
}
